#include <iostream>
#include "DrvControl.h"

using namespace std;

int InitiSys()
{
	if (!LoadDrv("1ds585", "DriverDemoPP.sys", "DriverDemoPP"))
	{
		return -1;
	}
	return 0;
}

int ReleaseSys()
{
	if (!UnLoadDrv())
	{
		return -1;
	}
	return 0;
}

int main()
{
	cout << "InitiSys" << endl;
	cout << InitiSys() << endl;
	getchar();

	DWORD x = 100, y = 0;
	ControlDrv(0x801, &x, sizeof(x), &y, sizeof(y));
	cout << y << endl;
	getchar();

	cout << "ReleaseSys" << endl;
	cout << ReleaseSys() << endl;
	getchar();

	return 0;
}